package com.caibq.controller;

import com.atguigu.yygh.model.user.UserInfo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * projectName: demoBox
 *
 * @author: caicai
 * time: 2024/1/3 9:53 周三
 * description:
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @RequestMapping("tt")
    public Map<String,Object> tt(@RequestBody UserInfo params1,@RequestBody UserInfo params2){
        Map<String, Object> map = new HashMap<>();
        map.put("p1",params1);
        map.put("p2",params2);
        return map;
    }
}
